//
// Created by czm on 2023/12/13.
//

#ifndef DDWK_RFID_SCAN_BLESVR_H
#define DDWK_RFID_SCAN_BLESVR_H

#include "nimble/ble.h"
/* BLE */
#include "esp_nimble_hci.h"
#include "nimble/nimble_port.h"
#include "nimble/nimble_port_freertos.h"
#include "host/ble_hs.h"
#include "host/util/util.h"
#include "console/console.h"
#include "services/gap/ble_svc_gap.h"

#ifdef __cplusplus
extern "C" {
#endif


extern void gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg);
extern int gatt_svr_init();
extern void blehr_advertise();
extern int blehr_gap_event(struct ble_gap_event *event, void *arg);
extern void blehr_on_sync(void);
extern void blehr_on_reset(int reason);
extern void blehr_host_task(void *param);


#ifdef __cplusplus
}
#endif

#endif //DDWK_RFID_SCAN_BLESVR_H
